package me.boot.common.data.model;

import cn.hutool.core.util.StrUtil;
import lombok.Data;
import me.base.utils.jackson.JacksonUtil;
import me.boot.common.constant.DbConst;

import java.io.Serializable;

/**
 * @Description:
 * @author: Sylar
 * @date: 2021年09月28日 4:13 下午
 */
@Data
public class OwnerInfo implements Serializable {

    //@formatter:off
    //对json字段的访问方式： 字段->'$.json属性'
    public final static String FIELD_TENANT_ID =       StrUtil.format(JacksonUtil.JSON_FIELD_FORMATER, DbConst.PROPERTY_OWNER,"tenantId");
    public final static String FIELD_COMPANY_ID =      StrUtil.format(JacksonUtil.JSON_FIELD_FORMATER, DbConst.PROPERTY_OWNER,"companyId");
    public final static String FIELD_DEPARTMENT_ID =   StrUtil.format(JacksonUtil.JSON_FIELD_FORMATER, DbConst.PROPERTY_OWNER,"departmentId");
    public final static String FIELD_USER_ID =         StrUtil.format(JacksonUtil.JSON_FIELD_FORMATER, DbConst.PROPERTY_OWNER,"userId");
    //@formatter:on

    private Long tenantId;
    private String tenantName;
    private Long companyId;
    private String companyName;
    private Long departmentId;
    private String departmentName;
    private Long userId;
    private String userName;
}
